package com.sinosun.autotestmachine.tools.Collector;

import java.util.ArrayList;
import java.util.List;

import com.sinosun.autotestmachine.tools.proxy.callback.NotificationInfo;

public class NotiSendCollector extends MsgSendCollector {
	private List<NotificationInfo> cache;
	private List<String> allNoti;
	
	public NotiSendCollector() {
		super();
		cache = new ArrayList<NotificationInfo>();
		allNoti = new ArrayList<String>();
	}
	
	public void addCache(NotificationInfo cache) {
		this.cache.add(cache);
	}
	
	public List<NotificationInfo> getCache() {
		return this.cache;
	}
	
	public void addNotiID(String msgID) {
		this.allNoti.add(msgID);
	}
	
	public void removeNotiID(String msgID) {
		this.allNoti.remove(msgID);
	}
	
	public boolean containNotiID(String msgID) {
		return this.allNoti.contains(msgID);
	}
	
	public List<String> getNotiIds() {
		return this.allNoti;
	}

}
